package com.hkedou.yuanhuo.shiro;

import com.alibaba.fastjson.JSON;
import com.hkedou.common.view.ResultModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class VerifyTipsController {


    @RequestMapping(value = "/nologintips")
    @ResponseBody
    public String noLoginTips(){

        Logger logger= LoggerFactory.getLogger("com.hkedou.adminsystem.login");
//        logger.error("",new Exception());
        ResultModel result=new ResultModel();
        result.setStatus(0b0000_0000_0000_0000_0000_0000_0100_0000);
        return JSON.toJSONString(result);
    }

    @RequestMapping(value = "/errortips")
    @ResponseBody
    public String errorTips(){

        ResultModel result=new ResultModel();
        result.setStatus(0b1000_0000_0000_0000_0000_0000_0000_0000);
        return JSON.toJSONString(result);
    }

}
